/**
 * 提问类
 * index -- 问题索引
 * askType -- 问题类型：一问一答或者选择题，每种类型显示方式略有不同
 * question -- 问题内容
 * options -- 答案选项
 */
class askBean {
  constructor(index, askType, question, isOptionsVisible, ...options) {
    this.index = index
    this.askType = askType
    this.question = question
    this.options = options
    // console.log(options)
    this.isOptionsVisible = isOptionsVisible
  }
}

var getInstance = function (index, askType, question, isOptionsVisible, ...options) {
  return new askBean(index, askType, question, isOptionsVisible, ...options);
}

module.exports = {
  getInstance: getInstance
}